<aside class="main-sidebar sidebar-dark-primary elevation-4">
    <a href="{:url('admin_controller/index')}" class="brand-link">
        <img src="__STATIC__/img/logo.jpg" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
        <span class="brand-text font-weight-light">约健俱乐部后台管理</span>
    </a>
    <div class="sidebar">
        <div class="user-panel mt-3 pb-3 mb-3 d-flex">
            <div class="info">
                <a href="#" class="d-block"><?php use think\Session; $result=db('clubs')->find(Session::get('clubid')); echo $result['caccount']; ?></a>
            </div>
        </div>
        <nav class="mt-2">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">

                <li class="nav-item">
                    <a href="{:url('club_controller/index')}" class="nav-link <?php if(request()->controller()=='ClubController'  && request()->action()=='index') echo 'active'; ?>">
                        <i class="nav-icon fa fa-gamepad"></i>
                        <p>俱乐部信息管理</p>
                    </a>
                </li>

                <li class="nav-item">
                    <a href="{:url('lessons_controller/index')}" class="nav-link <?php if(request()->controller()=='LessonsController') echo 'active'; ?>">
                        <i class="nav-icon fa fa-user"></i>
                        <p>课程管理</p>
                    </a>
                </li>

                <li class="nav-item">
                    <a href="{:url('videos_controller/index')}" class="nav-link <?php if(request()->controller()=='VideosController') echo 'active'; ?>">
                        <i class="nav-icon fa fa-hand-paper-o"></i>
                        <p>视频管理</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="{:url('trainers_controller/index')}" class="nav-link <?php if(request()->controller()=='TrainersController') echo 'active'; ?>">
                        <i class="nav-icon fa fa-bookmark-o"></i>
                        <p>教练管理</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="{:url('buy_controller/index')}" class="nav-link <?php if(request()->controller()=='BuyController') echo 'active'; ?>">
                        <i class="nav-icon fa fa-picture-o"></i>
                        <p>订单管理</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="{:url('club_controller/editpass')}" class="nav-link <?php if(request()->controller()=='ClubController' && request()->action()=='editpass') echo 'active'; ?>">
                        <i class="nav-icon fa fa-key"></i>
                        <p>修改密码</p>
                    </a>
                </li>

            </ul>
        </nav>
    </div>
</aside>